package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.mapper.MajorLineMapper;
import cn.com.beans.MajorLine;
import cn.com.service.MajorLineService;

import java.util.List;

@Service
public class MajorLineServiceImpl implements MajorLineService{

    @Resource
    private MajorLineMapper majorLineMapper;

    @Override
    public int deleteByPrimaryKey(Integer mlId) {
        return majorLineMapper.deleteByPrimaryKey(mlId);
    }

    @Override
    public int insert(MajorLine record) {
        return majorLineMapper.insert(record);
    }

    @Override
    public int insertSelective(MajorLine record) {
        return majorLineMapper.insertSelective(record);
    }

    @Override
    public MajorLine selectByPrimaryKey(Integer mlId) {
        return majorLineMapper.selectByPrimaryKey(mlId);
    }

    @Override
    public int updateByPrimaryKeySelective(MajorLine record) {
        return majorLineMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MajorLine record) {
        return majorLineMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Integer> findScore(Integer coId, Integer maId) {
        return majorLineMapper.findScore(coId, maId);
    }

}
